/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.ApsProject.DomainModels
{
    [Entity(TableCnName = "排程任务",TableName = "Aps_DistributedTask",DBServer = "ServiceDbContext")]
    public partial class Aps_DistributedTask:ServiceEntity
    {
        /// <summary>
       ///生产订单
       /// </summary>
       [Display(Name ="生产订单")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? SalesOrderId { get; set; }

       /// <summary>
       ///排程版本ID
       /// </summary>
       [Display(Name ="排程版本ID")]
       [Column(TypeName="bigint")]
       public long? ScheduleVersionId { get; set; }

       /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long DistributedTaskId { get; set; }

       /// <summary>
       ///设备ID
       /// </summary>
       [Display(Name ="设备ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? MachineId { get; set; }

       /// <summary>
       ///工序ID
       /// </summary>
       [Display(Name ="工序ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? GroupId { get; set; }

       /// <summary>
       ///工单号
       /// </summary>
       [Display(Name ="工单号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string MoCode { get; set; }

       /// <summary>
       ///投料批号
       /// </summary>
       [Display(Name ="投料批号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string PreMoCode { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Status { get; set; }

       /// <summary>
       ///产品
       /// </summary>
       [Display(Name ="产品")]
       [MaxLength(120)]
       [Column(TypeName="nvarchar(120)")]
       [Editable(true)]
       public string ProductsCode { get; set; }

       /// <summary>
       ///小时产能
       /// </summary>
       [Display(Name ="小时产能")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? UPH { get; set; }

       /// <summary>
       ///产出节拍
       /// </summary>
       [Display(Name ="产出节拍")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       public decimal? OutputCircle { get; set; }

       /// <summary>
       ///产品数量
       /// </summary>
       [Display(Name ="产品数量")]
       [DisplayFormat(DataFormatString="20,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Qty { get; set; }

       /// <summary>
       ///产品重量
       /// </summary>
       [Display(Name ="产品重量")]
       [DisplayFormat(DataFormatString="20,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Weight { get; set; }

       /// <summary>
       ///出货日
       /// </summary>
       [Display(Name ="出货日")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? DeadLine { get; set; }

       /// <summary>
       ///开始时间
       /// </summary>
       [Display(Name ="开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? StartTime { get; set; }

       /// <summary>
       ///结束时间
       /// </summary>
       [Display(Name ="结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndTime { get; set; }

       /// <summary>
       ///顺序
       /// </summary>
       [Display(Name ="顺序")]
       [Column(TypeName="int")]
       public int? Seq { get; set; }

       /// <summary>
       ///新版本中新增标识
       /// </summary>
       [Display(Name ="新版本中新增标识")]
       [Column(TypeName="int")]
       public int? IsNew { get; set; }

       /// <summary>
       ///标识能否排完
       /// </summary>
       [Display(Name ="标识能否排完")]
       [Column(TypeName="int")]
       public int? IsFinish { get; set; }

       /// <summary>
       ///0可按时达成 1可提前达成 2无法按时达成
       /// </summary>
       [Display(Name ="0可按时达成 1可提前达成 2无法按时达成")]
       [Column(TypeName="int")]
       public int? FinishStatus { get; set; }

       /// <summary>
       ///完成的数量
       /// </summary>
       [Display(Name ="完成的数量")]
       [DisplayFormat(DataFormatString="20,4")]
       [Column(TypeName="decimal")]
       public decimal? FinishedQty { get; set; }

       /// <summary>
       ///完成的重量
       /// </summary>
       [Display(Name ="完成的重量")]
       [DisplayFormat(DataFormatString="20,4")]
       [Column(TypeName="decimal")]
       public decimal? FinishedWeight { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///前置时长分钟
       /// </summary>
       [Display(Name ="前置时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       public decimal? BeforeMinutes { get; set; }

       /// <summary>
       ///准备时长分钟
       /// </summary>
       [Display(Name ="准备时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       public decimal? PreparationMinutes { get; set; }

       /// <summary>
       ///工艺ID
       /// </summary>
       [Display(Name ="工艺ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? RouteNameId { get; set; }

       /// <summary>
       ///工站顺序
       /// </summary>
       [Display(Name ="工站顺序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? StepSequence { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///后置时长分钟
       /// </summary>
       [Display(Name ="后置时长分钟")]
       [DisplayFormat(DataFormatString="8,2")]
       [Column(TypeName="decimal")]
       public decimal? AfterMinutes { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ScheduleTaskId")]
       [Column(TypeName="bigint")]
       public long? ScheduleTaskId { get; set; }

       
    }
}